package com.wanxi.education.service;

import com.github.pagehelper.PageInfo;
import com.wanxi.education.model.vo.order.*;

/**
 * @Author: 寇文宝
 * @Description:
 * @Date: Created in 2021/9/24
 * @Version: 1.0
 */
public interface OrderFrontService {
    OrderFindByIdVo generateOrder(OrderAddVo orderAddVo);

    PageInfo<OrderGoFrontVo> findPage(Integer pageNum, Integer pageSize, Long userId);

    OrderFindByIdVo findById(Long id, Long userId);

    int cancel(Long id, Long userId);

    void payMoney(String outTradeNo, String transactionId);

    Integer searchOrderState(String orderNumber, Long userId, Integer status);

    void autoCancelOrder(Long id);

    void payFailed(String outTradeNo);
}
